using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class BsMatinstockdetailTable : TableInfo
	{
		public const string C_TABLENAME = "Bs_Matinstockdetail"; 

		public const string C_BILLDETAILID = "BILLDETAILID";
		public const string C_BILLID = "BILLID";
		public const string C_PURCHASEID = "PURCHASEID";
		public const string C_PURCHASEDETAILID = "PURCHASEDETAILID";
		public const string C_WORKORDERNO = "WORKORDERNO";
		public const string C_MATERIALID = "MATERIALID";
		public const string C_PRICE = "PRICE";
		public const string C_NUMS = "NUMS";
		public const string C_AMOUNT = "AMOUNT";
		public const string C_MMNUMBER = "MMNUMBER";
		public const string C_CHECKRESULT = "CHECKRESULT";
		public const string C_UNQUALIFYREASON = "UNQUALIFYREASON";
		public const string C_UNQUALIFYMETHOD = "UNQUALIFYMETHOD";
		public const string C_QUALIFIYNUM = "QUALIFIYNUM";
		public const string C_QUALIFYMMNUMBER = "QUALIFYMMNUMBER";
		public const string C_UNQUALIFYNUM = "UNQUALIFYNUM";
		public const string C_COMPROMISENUM = "COMPROMISENUM";
		public const string C_COMPROMISEDEBIT = "COMPROMISEDEBIT";
		public const string C_CHECKUSERID = "CHECKUSERID";
				
		public BsMatinstockdetailTable()
		{
			_tableName ="Bs_Matinstockdetail";
		}

		protected static BsMatinstockdetailTable _current;

		public static BsMatinstockdetailTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new BsMatinstockdetailTable();

			_current.Add(C_BILLDETAILID, new ColumnInfo(C_BILLDETAILID, "", true, typeof(Decimal?)));
			_current.Add(C_BILLID, new ColumnInfo(C_BILLID, "", false, typeof(String)));
			_current.Add(C_PURCHASEID, new ColumnInfo(C_PURCHASEID, "", false, typeof(String)));
			_current.Add(C_PURCHASEDETAILID, new ColumnInfo(C_PURCHASEDETAILID, "", false, typeof(Decimal?)));
			_current.Add(C_WORKORDERNO, new ColumnInfo(C_WORKORDERNO, "", false, typeof(String)));
			_current.Add(C_MATERIALID, new ColumnInfo(C_MATERIALID, "", false, typeof(String)));
			_current.Add(C_PRICE, new ColumnInfo(C_PRICE, "", false, typeof(Decimal?)));
			_current.Add(C_NUMS, new ColumnInfo(C_NUMS, "", false, typeof(Decimal?)));
			_current.Add(C_AMOUNT, new ColumnInfo(C_AMOUNT, "", false, typeof(Decimal?)));
			_current.Add(C_MMNUMBER, new ColumnInfo(C_MMNUMBER, "", false, typeof(Decimal?)));
			_current.Add(C_CHECKRESULT, new ColumnInfo(C_CHECKRESULT, "", false, typeof(String)));
			_current.Add(C_UNQUALIFYREASON, new ColumnInfo(C_UNQUALIFYREASON, "", false, typeof(String)));
			_current.Add(C_UNQUALIFYMETHOD, new ColumnInfo(C_UNQUALIFYMETHOD, "", false, typeof(String)));
			_current.Add(C_QUALIFIYNUM, new ColumnInfo(C_QUALIFIYNUM, "", false, typeof(Decimal?)));
			_current.Add(C_QUALIFYMMNUMBER, new ColumnInfo(C_QUALIFYMMNUMBER, "", false, typeof(Decimal?)));
			_current.Add(C_UNQUALIFYNUM, new ColumnInfo(C_UNQUALIFYNUM, "", false, typeof(Decimal?)));
			_current.Add(C_COMPROMISENUM, new ColumnInfo(C_COMPROMISENUM, "", false, typeof(Decimal?)));
			_current.Add(C_COMPROMISEDEBIT, new ColumnInfo(C_COMPROMISEDEBIT, "", false, typeof(Decimal?)));
			_current.Add(C_CHECKUSERID, new ColumnInfo(C_CHECKUSERID, "", false, typeof(String)));
						
		}

		public ColumnInfo BILLDETAILID
		{
			get { return this[C_BILLDETAILID];}
		}

		public ColumnInfo BILLID
		{
			get { return this[C_BILLID];}
		}

		public ColumnInfo PURCHASEID
		{
			get { return this[C_PURCHASEID];}
		}

		public ColumnInfo PURCHASEDETAILID
		{
			get { return this[C_PURCHASEDETAILID];}
		}

		public ColumnInfo WORKORDERNO
		{
			get { return this[C_WORKORDERNO];}
		}

		public ColumnInfo MATERIALID
		{
			get { return this[C_MATERIALID];}
		}

		public ColumnInfo PRICE
		{
			get { return this[C_PRICE];}
		}

		public ColumnInfo NUMS
		{
			get { return this[C_NUMS];}
		}

		public ColumnInfo AMOUNT
		{
			get { return this[C_AMOUNT];}
		}

		public ColumnInfo MMNUMBER
		{
			get { return this[C_MMNUMBER];}
		}

		public ColumnInfo CHECKRESULT
		{
			get { return this[C_CHECKRESULT];}
		}

		public ColumnInfo UNQUALIFYREASON
		{
			get { return this[C_UNQUALIFYREASON];}
		}

		public ColumnInfo UNQUALIFYMETHOD
		{
			get { return this[C_UNQUALIFYMETHOD];}
		}

		public ColumnInfo QUALIFIYNUM
		{
			get { return this[C_QUALIFIYNUM];}
		}

		public ColumnInfo QUALIFYMMNUMBER
		{
			get { return this[C_QUALIFYMMNUMBER];}
		}

		public ColumnInfo UNQUALIFYNUM
		{
			get { return this[C_UNQUALIFYNUM];}
		}

		public ColumnInfo COMPROMISENUM
		{
			get { return this[C_COMPROMISENUM];}
		}

		public ColumnInfo COMPROMISEDEBIT
		{
			get { return this[C_COMPROMISEDEBIT];}
		}

		public ColumnInfo CHECKUSERID
		{
			get { return this[C_CHECKUSERID];}
		}

		
	}
}


